package cn.xiaohuodui.dao;

import cn.xiaohuodui.model.Good;
import cn.xiaohuodui.model.Sku;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SkuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Sku record);

    int insertSelective(Sku record);

    Sku selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Sku record);

    int updateByPrimaryKey(Sku record);



    /**
     * 后台过滤查询预约订单
     *
     * @param qm
     * @return
     */
    int skuBackCount(Map qm);

    List<Sku> skuBackQuery(Map qm);
}